package team.kirohuji.domain.article;

import java.util.Date;

import javax.persistence.Column;

import org.springframework.data.mongodb.core.mapping.Document;
@Document(collection = "article")
public class Article {
	@Column(name="user_id")
	private Integer userId;
	@Column(name="create_date")
	private Date createDate;
	
	private String title;
	
	private String content;
	
	private Integer type;

	
	public Integer getUserId() {
		return userId;
	}


	public void setUserId(Integer userId) {
		this.userId = userId;
	}


	public Date getCreateDate() {
		return createDate;
	}


	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public String getContent() {
		return content;
	}


	public void setContent(String content) {
		this.content = content;
	}


	public Integer getType() {
		return type;
	}


	public void setType(Integer type) {
		this.type = type;
	}


	@Override
	public String toString() {
		return "Article [userId=" + userId + ", createDate=" + createDate + ", title=" + title + ", content=" + content
				+ ", type=" + type + "]";
	}
	
	
}
